<template>
  <div class="wrap">
    <header>
      <div class="header1">
        <span @click="go">&lt;</span>
        <h3>房屋求租</h3>
      </div>
    </header>
    <main>1</main>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  created() {},
  methods: {
    go() {
      this.$router.go(-1);
    }
  }
};
</script>

<style lang="scss">
.wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
header {
  width: 100%;
  height: 100px;
  .header1 {
    display: flex;
    width: 100%;
    height: 50px;
    align-items: center;
    text-align: center;
    background: rgb(72, 72, 225);

    span {
      padding-left: 5%;
    }
    h3 {
      padding-left: 35%;
    }
  }
}
main {
  flex: 1;
  overflow-y: scroll;
}
</style>